package com.arpa.oms.domain.dto;

import com.arpa.wms.domain.entity.BasicEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * OMS调拨单DTO
 * </p>
 *
 * @author LEO
 * @since 2020-11-17
 */
@Data
@ApiModel(value="OmsAllocationDTO对象", description="OMS调拨单")
public class OmsAllocationDTO extends BasicEntity {


    @ApiModelProperty(value = "调拨单号")
    private String code;

    @ApiModelProperty(value = "调出仓库标识")
    private String sourceWarehouseCode;
    @ApiModelProperty(value = "调出仓库名称")
    private String sourceWarehouseName;

    @ApiModelProperty(value = "仓库标识集合")
    private List<String> warehouseCodes;

    @ApiModelProperty(value = "调入仓库标识")
    private String targetWarehouseCode;
    @ApiModelProperty(value = "调入仓库名称")
    private String targetWarehouseName;

    @ApiModelProperty(value = "入驻商")
    private String shipmentCode;

    @ApiModelProperty(value = "货主名称")
    private String shipmentName;

    @ApiModelProperty(value = "所属机构")
    private String groupCode;

    @ApiModelProperty(value = "基本单位总数量")
    private BigDecimal quantity;

    @ApiModelProperty(value = "单位数量上限")
    private BigDecimal unitQuantityCeiling;

    @ApiModelProperty(value = "单位数量下限")
    private BigDecimal unitQuantityFloor;

    @ApiModelProperty(value = "单位出库数量上限")
    private BigDecimal unitOutboundQuantityCeiling;

    @ApiModelProperty(value = "单位出库数量下限")
    private BigDecimal unitOutboundQuantityFloor;

    @ApiModelProperty(value = "单位入库数量上限")
    private BigDecimal unitInboundQuantityCeiling;

    @ApiModelProperty(value = "单位入库数量下限")
    private BigDecimal unitInboundQuantityFloor;

    @ApiModelProperty(value = "基本单位出库数量")
    private BigDecimal outboundQuantity;

    @ApiModelProperty(value = "基本单位入库数量")
    private BigDecimal inboundQuantity;

    @ApiModelProperty(value = "审核意见")
    private String verifyOpinion;

    @ApiModelProperty(value = "审核时间")
    private LocalDateTime gmtVerify;

    @ApiModelProperty(value = "审批时间start")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime gmtVerifyStart;

    @ApiModelProperty(value = "审批时间end")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime gmtVerifyEnd;

    @ApiModelProperty(value = "审核人")
    private String verifyBy;

    @ApiModelProperty(value = "审核人姓名")
    private String verifyName;

    @ApiModelProperty(value = "状态：状态：新增、作废、待审核、审核通过、审核不通过")
    private String status;

    @ApiModelProperty(value = "审核列表查询时参数，审核状态：1: 待审核、2: 审核通过、3：审核不通过")
    private String auditStatus;

    @ApiModelProperty(value = "备注")
    private String remarks;


    @ApiModelProperty(value = "第几页")
    private Integer pageNum=1;

    @ApiModelProperty(value = "每页条数")
    private Integer pageSize=10;

    @ApiModelProperty(value = "排序字段")
    private String sortField;

    @ApiModelProperty(value = "排序方式")
    private String sortType;
}
